package com.cx330;

public class Example32 {
    static int a;
    int b;
    static int d;

    public void method() {
        int c = 1;
        int d = 1;
        a++;
        b++;
        c++;
        d++;
        System.out.println("静态变量a = " + a);
        System.out.println("实例变量b = " + b);
        System.out.println("局部变量c = " + c);
        System.out.println("局部变量d = " + d);
    }

    public static void main(String[] args) {
        Example32 e1 = new Example32();
        e1.method();
        e1.method();
        Example32 e2 = new Example32();
        e2.method();
    }
}
